package etnorservice.etnor_service.mapper;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: cc
 * @Date: 2024/11/30/11:09
 **/



import etnorservice.etnor_service.domain.po.Reply;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

@Mapper
public interface ReplyMapper {
    // 插入回复
    int insert(Reply reply);

    // 根据评论ID获取回复列表
    List<Reply> findByCommentId(Long commentId);

    // 更新回复
    int update(Reply reply);

    // 删除回复
    int deleteById(Long id);

    // 根据ID查询回复
    Reply findById(Long id);

    // 更新回复的点赞数
    int updateLikesCount(Long id, int likesCount);
}
